
#include "FreeRTOS.h"
#include "task.h"
#include "communication.h"
#include "lora.h"
#include "power_task.h"
#include "sim7600ce.h"
void vPower_Task( void *pvParameters )
{
	uint8_t pBuffer[100];
	uint8_t uclen;
	EventBits_t AllEventBit = 0;

	Lora_Init(115200);
	AllEventBit = xEventGroupWaitBits(TCPEventGroupHandler, TCPSTARTBIT, pdFALSE, pdFALSE, portMAX_DELAY);
	
	while(1)
	{
		if(LoraRece(pBuffer, &uclen, portMAX_DELAY))
		{
			ReportPowerFormat(pBuffer, uclen, 2000);
		}
		//vTaskDelay(1000);
	}
}

